<table border=0 cellpadding=6 cellspacing=0 width="100%">
  <tr>
  	<td colspan="20" align="right">
  		<?
	include_once("class/Page.class.php");

			$qryenws = "select * from news order by news_id DESC";
			$page=new Paging();
			$page->initPaging($qryenws,10,10,"nws");
			$query_page=mysql_query($page->getQuery());
			$number_page=$page->getFirstOffset();
			echo $page->getInfoPage()."   ".$page->getPaging();
		?>
  	</td>
  </tr>
<tr>
	<td>
	<?
		while ($news = mysql_fetch_array($query_page))
		{
			$nw = explode(" ",$news["news_content"]);
			$nnw = "";
			for ($i=0;$i<=30;$i++) $nnw = $nnw." ".$nw[$i];
			$nnw = nl2br($nnw);
			echo "<TABLE cellSpacing=0 cellPadding=1 width=95% align=center>
			<TBODY><TR><TD><A class=judulberita href=index.php?det=1&kd=news&id=".$news["news_id"].">".$news["news_title"]."</A><br><SPAN class=text-tanggal>".$news["news_post"]."</SPAN></TD></TR>
			
			<TR><TD><DIV align=justify>".$nnw." ... </DIV></TD></TR>
			<TR><TD>&nbsp;</TD></TR>
			</table>";
		}
	?>	
	</td>
</tr>  
<tr>
  	<td colspan="20" align="right">
  		<?
			$page=new Paging();
			$page->initPaging($qryenws,10,10,"nws");
			$query_page=mysql_query($page->getQuery());
			$number_page=$page->getFirstOffset();
			echo $page->getInfoPage()."   ".$page->getPaging();
		?>
  	</td>
  </tr>

</table>
